# Maintainer: Alex Raschi <raschi.alex@gmail.com>
pkgname=neatvi
pkgver=08
pkgrel=0
pkgdesc="vi/ex editor with support for bidirectional UTF-8 text, syntax highlight and infinite undo/redo"
url="https://github.com/aligrudi/neatvi"
arch="all"
license="ISC" # vi.c
subpackages="$pkgname-doc"
options="!check" # no test suite
source="$pkgname-$pkgver.tar.gz::https://github.com/aligrudi/neatvi/archive/$pkgver.tar.gz
	conf.patch"

build() {
	make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
}

package() {
	install -Dm755 "$builddir"/vi "$pkgdir"/usr/bin/neatvi
	install -Dm644 "$builddir"/README -t "$pkgdir"/usr/share/doc/neatvi
}

sha512sums="c883e06e215143498a04ece5cacee745fda3cc16a3b31b2a3e70cd559c1dffaddb2c6e98960e0293e37ea55a72a805564cc7e69d86f1e1689303a06244be929d  neatvi-08.tar.gz
d5538cf2bfb98b93d3661f686540580f754cd5fca641893b58cf80312ec703aa332601f68258335a71bdeb72356148a75db22ae139e05c04c060cfcb31f2fafd  conf.patch"
